import Http from '@/common/http'

export default {

  getInfo: id => Http.get(`/user/${id}/info`),

  getCourses: (id, params = {}) => Http.get(`/user/${id}/courses`, params),

  getFavorites: (id, params = {}) => Http.get(`/user/${id}/favorites`, params),

  getFriends: (id, params = {}) => Http.get(`/user/${id}/friends`, params),

  getGroups: (id, params = {}) => Http.get(`/user/${id}/groups`, params)

}
